<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width= , initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form action="test.php">
        用户：<input type="text">
        密码：<input type="password"><br>
        性别：
        男：<input type="radio" name="gender" value="male">
        女：<input type="radio" name="gender" value="female"><br>
        爱好：
       篮球：<input type="checkbox" name="hobbies" value="basketball">
       足球：<input type="checkbox" name="hobbies" value="football">
       游泳：<input type="checkbox" name="hobbies" value="swimming">
       <hr>
       <select name="city">
        <optgroup label="一线城市">
        <option value="taiyuan">太原</option>
        <option value="datong">大同</option>
        <option value="jinzhong">晋中</option>
    </optgroup>
    <optgroup label="二线城市">
        <option value="shanghai">上海</option>
        <option value="beijing">北京</option>
        <option value="guangzhou">广州</option>
    </optgroup>
       </select>
       <textarea cols="100" rows="100"></textarea>
       <input type="datetime-local">
    </form>
</body>
</html>